import Util from 'util/mm.jsx';
const _mm = new Util();


class Order{
	
	getOrderList(listParam){
		let url 	= '',
			data	= {};
		data.pageNum = listParam.pageNum;
		if (listParam.listType === 'list') {
			url = '/manage/order/list.do';
		} else {
			//搜索的方式获取列表
			url = '/manage/order/search.do';
			data['orderNo'] = listParam.orderNo;
		}
		return  _mm.request({url,data});
	}
	
	getOrder(orderNo){
		return _mm.request({
			url     : '/manage/order/detail.do',
			data    : {orderNo}
		});
	}
}

export default Order;